/**
 * Created by Administrator on 2017/4/18.
 */
//type1
let myArray1:number[] = [1,2,3,4,5];
let myArray4:any[]=['cool',true,6];

//type2 数组泛型，Array<元素类型>
let myArray2:Array<number>=[6,5,4,3];
let myArray3:Array<any>=['hello',2,false];

console.log(myArray1[0]);
console.log(myArray2[1]);
console.log(myArray3[2]);
console.log(myArray4[0]);